const path = require('path');
// module.exports = { // 基本配置
//   entry: './index.js',
//   output: {
//     path: path.resolve(__dirname, 'dist'),
//     filename: 'output.bundle.js'
//   }
// }

module.exports = { // 多入口文件配置
  mode: 'development', // 设置环境development/production,默认线上环境会去除consol和debugger
  entry: { // 入口
    home: './home.js',
    about: './about.js',
    other: './other.js'
  },
  output: { // 出口
    path: path.resolve(__dirname, 'dist'),
    filename: '[name].bundle.js'
  }
}

